package com.lsl.composite.book;

/**
 * @author Zed
 * @description
 * @date 2022/11/28 23:00
 */
public class Main {
    public static void main(String[] args) throws Exception {
        Directory rootDir = new Directory("root");
        Directory binDir = new Directory("bin");
        Directory tmpDir = new Directory("tmp");
        Directory usrDir = new Directory("usr");
        rootDir.add(binDir);
        rootDir.add(tmpDir);
        rootDir.add(usrDir);

        binDir.add(new File("vi",10000));
        binDir.add(new File("latex",20000));
        rootDir.printList();


    }
}
